package com.cos.lession76sb2.services.impl;

import com.cos.lession76sb2.dao.EmpMapper;
import com.cos.lession76sb2.entity.Emp;
import com.cos.lession76sb2.services.EmpServices;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/10/9 14:18
 * @description:
 */
@Service
@Slf4j
@Transactional
public class EmpServicesImpl implements EmpServices {
    @Autowired
    private EmpMapper empMapper;

    @Override
    public List<Emp> getAll() {
        log.info("娃娃哈哈哈哈哈");
        log.error("哦呵呵呵呵");
        return empMapper.getAll();
    }
}
